<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }

    .box1 {
        width: 0;
        height: 0;
        /* border: 10px solid pink */
        border-top: 10px solid pink;
        border-bottom: 10px solid rgb(42, 38, 83);
        border-right: 10px solid rgb(170, 145, 37);
        border-left: 10px solid rgb(125, 21, 63);
    }

    .box2 {
        width: 0;
        height: 0;
        border: 40px solid transparent;
        border-bottom: 40px solid rgb(42, 38, 83);

    }



    .box5 {
        margin-top: 100px;
        /* position: relative; */
        height: 300px;
        width: 300px;
        background-color: pink;
    }

    .box4 {
        /* position: absolute; */
        top: -100px;
        right: 20px;
        height: 0;
        width: 0;
        border: 50px solid transparent;
        border-bottom: 50px solid pink;
    }

    .box6 {
        /*直角三角形*/

        margin: 0 auto;
        /* width: 0;
        height: 0;
        border-top: 100px solid transparent; */
        /* border-bottom: 50px solid rgb(210, 192, 255); */
        /* border-right: 50px solid rgb(70, 15, 147); */
        /* border-left: 50px solid rgb(194, 93, 35); */
        /*-------------------------------------------------------*/
        /*简写(上右下左)*/
        border-width: 100px 50px 0 0;
        border-style: solid;
        border-color: transparent red transparent transparent;

    }

    /*-----------------------------------------------------------------*/
    .price {
        text-align: center;
        margin: 0 auto;
        height: 24px;
        width: 160px;
        line-height: 24px;
        border: 2px solid red;

    }

    .miaos {
        position: relative;
        float: left;
        width: 90px;
        height: 100%;
        color: aliceblue;
        font-weight: 700;
        background-color: red;
    }

    .miaos i {
        position: absolute;
        top: 0;
        right: 0;
        width: 0;
        height: 0;
        border-color: transparent #fff transparent transparent;
        border-style: solid;
        border-width: 24px 10px 0 0;
    }
</style>

<body>
    <script>
        //三角就是 盒子隐藏三个边框 大小由边框粗细决定 宽高必须是0
    </script>
    <div class="box1"></div>
    <div class="box2"></div>
    <hr>

    <div class="box5">
        <div class="box4"></div>
    </div>
    <!-- 获得直角三角形 -->
    <div class="box6">

    </div>
    <div class="price">
        <span class="miaos">$1650
            <i></i>
        </span>
        <span>$5650</span>
    </div>
</body>

</html>